// Card.cpp: implementation of the CCard class.
//
//////////////////////////////////////////////////////////////////////

#include "Card.h"
#include "math.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"

#include "colors.h"
#include "pnm_file.h"

#include "backbuffer.h"


#define CARD_WIDTH		74
#define CARD_HEIGHT		110

#define CARD_SPACE		5
#define CARD_CORNER		15





//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


CCard::~CCard()
{

}

/*
	returns zero if values are equal
	returns negative for this.value less than parameter.value,
	returns positive for this.value greater than parameter.value

	return value is the difference between values
*/

int	CCard::CompareValue( const CCard& _card )
{
	return (int)this->value - (int)_card.value;
}

void CCard::Draw( unsigned int _x, unsigned int _y, bool draw_selected, unsigned char _width, unsigned char _height )
{
    throw "No Draw function is implemented!";

}

bool CCard::Flip()
{
	return this->face_down = !this->face_down;
}

bool CCard::IsFaceDown() const
{
	return this->face_down;
}
